﻿<!--编辑器开始-->
<script type="text/javascript" charset="utf-8" src="/Content/UEditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/Content/UEditor/ueditor.all.min.js"></script>
<textarea id="@ViewBag.FormName" name="@ViewBag.FormName" style="width: @ViewBag.Width; height: @ViewBag.Height">@ViewBag.FormContent</textarea>
<script type="text/javascript">
    //实例化编辑器
    var ue = UE.getEditor('@ViewBag.FormName', {
        //toolbars: [['fullscreen', 'source', '|', 'undo', 'redo', '|',
        //        'bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
        //        //'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
        //        'directionalityltr', 'directionalityrtl', 'indent', '|',
        //        'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|',
        //        'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
        //        'touppercase', 'tolowercase', '|',
        //        'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
        //        'insertimage', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment', 'map', 'insertframe', 'highlightcode', 'pagebreak', 'template', 'background', '|',
        //        'horizontal', 'date', 'time', 'spechars', '|',
        //        'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', '|',
        //        'print', 'preview', 'searchreplace', 'help']]
        wordCount: true
        , wordCountMsg:'字数：{#count}&nbsp;&nbsp;'
        //focus时自动清空初始化时的内容
        , autoClearinitialContent: false
        , initialFrameHeight: @ViewBag.Height
    });
    //ue.addListener('ready', function () {
    //    this.focus()
    //});
</script>
<!--编辑器结束-->
